home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1987-05-08 | 806 b | 20 lines |
- 10 CLS
- 20 KEY OFF
- 30 COLOR 7,0
- 40 WIDTH 80
- 50 DEF SEG = 0: POKE 1050,PEEK(1052)
- 60 LOCATE 1,30:PRINT "A D D I T I O N T U T O R I A L"
- 70 LOCATE 5,2:PRINT " This section of M A T H P A K, will add up to 60 "
- 80 LOCATE 6,2:PRINT "numbers to each other."
- 90 LOCATE 8,2:PRINT "The program will allow you to input UP TO 60 seperate values."
- 100 LOCATE 9,2:PRINT "To the total sum,is displayed throughout the loop."
- 110 LOCATE 11,2:PRINT " At any time, you can return to main menu, by entering a '0' for a value..."
- 120 LOCATE 13,2:PRINT " EXAMPLE:"
- 130 LOCATE 15,20:PRINT " 3 + 4 + 5 + 6 + 7 + 8 = ?"
- 140 LOCATE 18,2:PRINT "First,enter the '3',press <RETURN> and then enter '4',press <RETURN>..."
- 150 LOCATE 19,2:PRINT "Then, after the LAST value is inputed, the total sum is displayed."
- 160 LOCATE 22,2:PRINT "Press the S P A C E B A R to return to disk tutorial...
- 170 S$ =INKEY$:IF S$ =" " THEN CLS:CLEAR:CHAIN"a"
- 180 GOTO 170
- 190 END
-